//
//  BLTimeAxisData.m
//  BLTimeAxis
//
//  Created by dg on 2025/4/17.
//

#import "BLTimeAxisData.h"

@implementation BLTimeAxisData

- (void)acceptVisitor:(id<BLTimeAxisVisitor>)visitor {
    [visitor visitTimeAxisData:self];
}

- (id)copyWithZone:(NSZone *)zone {
    BLTimeAxisData *axisData = [[BLTimeAxisData allocWithZone:zone] init];
    axisData.startTimeInterval = self.startTimeInterval;
    axisData.duration = self.duration;
    axisData.strokeColor = self.strokeColor;
    axisData.data = self.data;
    
    return axisData;
}

- (NSTimeInterval)endTimeInterval {
    return self.startTimeInterval + self.duration;
}

@end
